package com.dz.finance.biz.service;

import com.dz.finance.biz.dto.PhonePasswordLoginDTO;
import com.dz.finance.biz.dto.PhoneSmsLoginDTO;
import com.dz.finance.biz.dto.SmsCodeDTO;
import com.dz.finance.common.entity.Token;

/**
 * @author: DengHaoQi
 * @date: 2024/5/22 16:43
 * @description:
 */
public interface MemberLoginService {

    String getClientId();

    String getBase64Code(String clientId);

    /*
    * 获取短信验证码
    * */
    void sendSmsCode(SmsCodeDTO smsCodeDTO);

    /*
    * 校验短信验证码
    * */
    boolean checkSmsCode(String phone, String smsCode, String smsCodeType);


    /*
    * 手机号密码登陆
    * */
    Token loginByPhonePassword(PhonePasswordLoginDTO phonePasswordLoginDTO);


    /*
    * 手机号短信验证码登陆
    * */
    Token loginByPhoneSms(PhoneSmsLoginDTO phoneSmsLoginDTO);



    /*
    * 获取客户端登陆Token
    * */
    Token getClientToken(String clientId);
}
